home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 701-725 / 708 / intuisup / intuisup42.lha / Intuisup / InstallLibrary < prev    next >
Text File  |  1992-06-22  |  1KB  |  36 lines

  1. .K ""
  2. echo "This script will install the intuisup library, after first checking"
  3. echo "to see if you already have one installed.  If so, it will check the"
  4. echo "version number of the installed one, and give you the option of"
  5. echo "installing the one found here."
  6. echo ""
  7.  
  8. ask "Do you wish to continue with the installation? [y/n]"
  9. if WARN
  10.   if not EXISTS libs:intuisup.library
  11.     echo "No existing library, installing libs:intuisup.library..."
  12.     protect libs:intuisup.library rwed
  13.     copy library/intuisup.library libs:intuisup.library
  14.   else
  15.     echo "The version here is 4.2."
  16.     failat 20
  17.     echo "Your currently installed library version is:"
  18.     version intuisup.library 4 2
  19.     if WARN
  20.       ask "Do you wish to update libs:intuisup.library? [y/n]"
  21.       if WARN
  22.         echo "Updating libs:intuisup.library..."
  23.     protect libs:intuisup.library rwed
  24.         copy library/intuisup.library libs:intuisup.library
  25.       else
  26.         echo "libs:intuisup.library unchanged."
  27.       endif
  28.     else
  29.       echo "The current installed version is up to date."
  30.     endif
  31.   endif
  32. endif
  33.  
  34. echo "All Done.  Click close gadget to get rid of window."
  35. endcli
  36.